package com.share.module.sys.role.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.share.module.sys.role.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author lijy
 * @since 2023-04-17
 */
@Mapper
public interface RoleDAO extends BaseMapper<Role> {

    @Select("select id from sys_role where flag = #{flag}")
    Integer selectByFlag(@Param("flag") String flag);
}
